-
Notifications
You must be signed in to change notification settings - Fork 23
[BEEEP] Update bitwarden-ssh RustCrypto dependencies, fixing imports of various SSH keys #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
|
Claude finished @quexten's task —— View job Code Review CompleteThe dependency updates to RustCrypto RC versions are well-executed and successfully address the stated objectives. Test coverage for new functionality is strong. FindingsFinding 1 The PR pins exact versions ( Context
ed25519-dalek = { version = "=3.0.0-pre.1", features = ["alloc", "pkcs8"] }
pkcs8 = { version = "=0.11.0-rc.7", features = ["encryption"] }vs workspace in ed25519-dalek = { version = ">=2.1.1, <=2.2.0" }
Finding 2 💭 Generic error conversion loses diagnostic information In Finding 3 🎨 Eliminated manual RSA conversion workaround The removal of Finding 4 🎨 Comprehensive test coverage for bug fixes New regression tests effectively validate fixes:
Summary of ChangesDependencies Updated:
Code Changes:
Test Updates:
Action Items
Security & Best Practices✅ No logging of sensitive key material |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #536 +/- ##
==========================================
- Coverage 78.70% 78.66% -0.04%
==========================================
Files 296 296
Lines 30500 30504 +4
==========================================
- Hits 24005 23997 -8
- Misses 6495 6507 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| getrandom = { version = "=0.3.3" } | ||
| pem-rfc7468 = "1.0.0-rc.3" | ||
| pkcs8 = { version = "=0.11.0-rc.7", features = ["encryption"] } | ||
| rand = "0.9.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rand = "0.9.2" | |
| # TODO: Update to workspace versions when other crates are ready for RustCrypto RC releases | |
| rsa = "0.10.0-rc.9" |
This helps track that the version pinning is temporary and should be revisited.

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-27518
Fixes:
bitwarden/clients#17028
bitwarden/clients#14076
📔 Objective
Updates the
bitwarden-sshdependencies torcreleases from RustCrypto. This allows us to:It also replaces the RSA crate that has a vulnerability (timing attack) - though, it is unlikely that this actually affects import / was abusable.
RSA key generation test vectors are broken because the underlying RSA generation algorithm changed with rustcrypto's massive re-implementation of RSA, hence new test keys are provided.
Note: This pins the dependencies to be different from the workspace crates, as those are not yet ready to be updated. Eventually we will update those bit-by-bit too and then drop the dependency pinning.
⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes